<?php
/*
 * Created by generator
 *
 */

$this->load->helper('form');
$this->load->helper('url');
$this->load->helper('views');

?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Liste des activités</title>
<link rel="stylesheet" href="<?=base_url()?>www/css/screen.css" type="text/css" media="screen" title="default" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="<?=base_url()?>www/css/pro_dropline_ie.css" />
<![endif]-->

<!--  jquery core -->
<script src="<?=base_url()?>www/js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>

<!--  checkbox styling script -->
<script src="<?=base_url()?>www/js/jquery/ui.core.js" type="text/javascript"></script>
<script src="<?=base_url()?>www/js/jquery/ui.checkbox.js" type="text/javascript"></script>
<script src="<?=base_url()?>www/js/jquery/jquery.bind.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$('input').checkBox();
	$('#toggle-all').click(function(){
 	$('#toggle-all').toggleClass('toggle-checked');
	$('#mainform input[type=checkbox]').checkBox('toggle');
	return false;
	});
});
</script>  

<![if !IE 7]>

<!--  styled select box script version 1 -->
<script src="<?=base_url()?>www/js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect').selectbox({ inputClass: "selectbox_styled" });
});
</script>
 

<![endif]>

<!--  styled select box script version 2 --> 
<script src="<?=base_url()?>www/js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
});
</script>

<!--  styled select box script version 3 --> 
<script src="<?=base_url()?>www/js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_pages').selectbox({ inputClass: "styledselect_pages" });
});
</script>

<!--  styled file upload script --> 
<script src="<?=base_url()?>www/js/jquery/jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
  $(function() {
      $("input.file_1").filestyle({ 
          image: "<?=base_url()?>www/images/forms/choose-file.gif",
          imageheight : 21,
          imagewidth : 78,
          width : 310
      });
  });
</script>

<!-- Custom jquery scripts -->
<script src="<?=base_url()?>www/js/jquery/custom_jquery.js" type="text/javascript"></script>
 
<!-- Tooltips -->
<script src="<?=base_url()?>www/js/jquery/jquery.tooltip.js" type="text/javascript"></script>
<script src="<?=base_url()?>www/js/jquery/jquery.dimensions.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$('a.info-tooltip ').tooltip({
		track: true,
		delay: 0,
		fixPNG: true, 
		showURL: false,
		showBody: " - ",
		top: -35,
		left: 5
	});
});
</script> 

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="<?=base_url()?>www/js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );
});
</script>
</head>
<body> 
<!-- Start: page-top-outer -->
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
	<a href=""><img src="<?=base_url()?>www/images/shared/logo-small.png" alt="" /></a>
	</div>
	<!-- end logo -->
	
	<?= htmlSearch() ?>
	
 	<div class="clear"></div>

</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
 
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

	<?= htmlMyAccount() ?>
	<?= htmlNavigation("activites","liste"); ?>

</div>
<div class="clear"></div>
<!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->

 <div class="clear"></div>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Liste des <?= count($activites) ?> activités</h1>
	</div>
	<!-- end page-heading -->

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="<?=base_url()?>www/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="<?=base_url()?>www/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content">
			
				<!--  start message-yellow -- >
				<div id="message-yellow">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="yellow-left">You have a new message. <a href="">Go to Inbox.</a></td>
					<td class="yellow-right"><a class="close-yellow"><img src="<?=base_url()?>www/images/table/icon_close_yellow.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-yellow -->
				
				<!--  start message-red -- >
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Error. <a href="">Please try again.</a></td>
					<td class="red-right"><a class="close-red"><img src="<?=base_url()?>www/images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-red -->
				
				<!--  start message-blue -- >
				<div id="message-blue">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="blue-left">Welcome back. <a href="">View my account.</a> </td>
					<td class="blue-right"><a class="close-blue"><img src="<?=base_url()?>www/images/table/icon_close_blue.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-blue -->
			
				<!--  start message-green -- >
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Product added sucessfully. <a href="">Add new one.</a></td>
					<td class="green-right"><a class="close-green"><img src="<?=base_url()?>www/images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
				<!--  end message-green -->
		

<?
$attributes_info = array('name' => 'RechercheForm');
$fields_info = array();
echo form_open_multipart('listactivites/recherche', $attributes_info, $fields_info );
?>
<table>
	<tr>
		<td width="100"><label for="actidsai_rech">Saison</label> : </td>
		<td nowrap>
			<select name="actidsai_rech" id="actidsai_rech" class="styledselect_form_1">
				<?php foreach ($saisons as $saison): ?>
				<option value="<?= $saison->saiidsai ?>" <?= ($saison->saiidsai == $criteres->actidsai)?("selected"):("")?>><?= $saison->sailbnom ?></option>
				<?php endforeach;?>
			</select>
		</td>
		<td style="padding-left: 100px;">&nbsp;</td>
		<td nowrap><label title="Nom" for="actlblib_rech">Libellé</label> : </td>
		<td><input type="text" name="actlblib_rech" id="actlblib_rech" class="inp-form" value="<?= $criteres->actlblib ?>"></td>
	</tr>
	<tr>
		<td nowrap><label title="Niveau de l'activité" for="actidniv_rech">Niveau</label> : </td>
		<td>
			<select name="actidniv_rech" id="actidniv_rech" class="styledselect_form_1">
				<option value=""></option>
				<?php foreach ($niveaux as $niveau): ?>
				<option value="<?= $niveau->nividniv ?>" <?= ($niveau->nividniv == $criteres->actidniv)?("selected"):("")?>><?= $niveau->nivlbnom ?></option>
				<?php endforeach;?>
			</select>
		</td>
		<td style="padding-left: 100px;">&nbsp;</td>
		<td nowrap><label title="Tranche d'age théorique des adhérents" for="actidtra_rech">Tranche d'age</label> : </td>
		<td>
			<select name="actidtra_rech" id="actidtra_rech" class="styledselect_form_1">
				<option value=""></option>
				<?php foreach ($tranchesAges as $trancheAges): ?>
				<option value="<?= $trancheAges->traidtra ?>" <?= ($trancheAges->traidtra == $criteres->actidtra)?("selected"):("")?>><?= $trancheAges->tralbnom ?></option>
				<?php endforeach;?>
			</select>
		</td>
	</tr>

	<tr>
		<td nowrap><label title="Professeur qui dirige l'activité (vide = pas de professeur)" for="actidpro_rech">Professeur</label> : </td>
		<td>
			<select name="actidpro_rech" id="actidpro_rech" class="styledselect_form_1">
				<option value=""></option>
				<?php foreach ($professeurs as $professeur): ?>
				<option value="<?= $professeur->proidpro ?>" <?= ($professeur->proidpro == $criteres->actidpro)?("selected"):("")?>><?= $professeur->prolbprn ?> <?= $professeur->prolbnom ?></option>
				<?php endforeach;?>
			</select>
		</td>
		<td style="padding-left: 100px;">&nbsp;</td>
		<td nowrap><label title="Créneau horaire - heure de début" for="actlbhdb_rech">Heure de début</label> : </td>
		<td><input type="text" name="actlbhdb_rech" id="actlbhdb_rech" class="inp-form" value="<?=$criteres->actlbhdb?>"></td>
		<td nowrap>
			<div class="bubble-left"></div>
			<div class="bubble-inner">Au format 00h00</div>
			<div class="bubble-right"></div>
		</td>
	</tr>
	<tr>
		<td nowrap><label title="Créneau horaire - jour de la semaine" for="actlbjou_rech">Jour de la semaine</label> : </td>
		<td>
		
			<select name="actlbjou_rech" id="actlbjou_rech" class="styledselect_form_1">
				<option value=""></option>
				<option value="Lundi" <?= ("Lundi" == $criteres->actlbjou)?("selected"):("")?>>Lundi</option>
				<option value="Mardi" <?= ("Mardi" == $criteres->actlbjou)?("selected"):("")?>>Mardi</option>
				<option value="Mercredi" <?= ("Mercredi" == $criteres->actlbjou)?("selected"):("")?>>Mercredi</option>
				<option value="Jeudi" <?= ("Jeudi" == $criteres->actlbjou)?("selected"):("")?>>Jeudi</option>
				<option value="Vendredi" <?= ("Vendredi" == $criteres->actlbjou)?("selected"):("")?>>Vendredi</option>
			</select>
		</td>
		<td style="padding-left: 100px;">&nbsp;</td>
		<td nowrap><label title="créneau horaire - heure de fin" for="actlbdfn_rech">Heure de fin</label> : </td>
		<td><input type="text" name="actlbdfn_rech" id="actlbdfn_rech" class="inp-form" value="<?=$criteres->actlbdfn?>"></td>
		<td nowrap>
			<div class="bubble-left"></div>
			<div class="bubble-inner">Au format 00h00</div>
			<div class="bubble-right"></div>
		</td>
	</tr>
	<tr>
		<td nowrap><label title="Situation de l'activité" for="actidsit_rech">Situation</label> : </td>
		<td>
			<select name="actidsit_rech" id="actidsit_rech" class="styledselect_form_1">
				<option value=""></option>
				<?php foreach ($situations as $situation): ?>
				<option value="<?= $situation->sitidsit ?>" <?= ($situation->sitidsit == $criteres->actidsit)?("selected"):("")?>><?= $situation->sitlbnom ?></option>
				<?php endforeach;?>
			</select>
		</td>
		<td></td>
		
	</tr>

	<tr>
		<td colspan="5"></td>
		<td>Lancer la recherche</td>
		<td>
			<input type="button" value="" class="form-smallGo"
				onclick="document.forms['RechercheForm'].submit();return false;" />
		</td>
</table>

<?
echo form_close('');
?> 
<br>
				<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-check"></th>
					<!-- table header auto-generated : -->
					<th class="table-header-repeat line-left minwidth-1"><a href="">Libellé</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Niveau</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tranche d'ages</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Professeur</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Jour</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Début</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Fin</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Maintenue</a></th>
					
					<th class="table-header-options line-left"><a href="">Options</a></th>
				</tr>
	<?php
	$even = false;
	foreach($activites as $activite):
	?>
				<tr <?=($even)?('class="alternate-row"'):('')?>>
					<td><a href="<?=base_url()?>index.php/editactivite/index/<?=$activite->actidact?>" title="Editer" class="icon-1 info-tooltip"></a></td>
					<td valign="top"><?=$activite->actlblib?></td> 
					<td valign="top"><?=$niveaux[$activite->actidniv]->nivlbnom?></td> 
					<td valign="top"><?=$tranchesAges[$activite->actidtra]->tralbnom?></td> 
					<td valign="top"><? $prof = $professeurs[$activite->actidpro] ?><?= $prof->prolbprn?> <?= $prof->prolbnom?></td> 
					<td valign="top"><?=$activite->actlbjou?></td> 
					<td valign="top"><?=$activite->actlbhdb?></td> 
					<td valign="top"><?=$activite->actlbdfn?></td> 
					<td valign="top"><?=($activite->actfgmai == "o")?("Oui"):("Non")?></td> 
					<td class="options-width">
					
					<a href="<?=base_url()?>index.php/listactivites/delete/<?=$activite->actidact?>" title="Supprimer" class="icon-2 info-tooltip"></a>
					</td>
				</tr>
	<?php 
		$even = !$even; 
	endforeach; ?>
				</table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... -- >
			<div id="actions-box">
				<a href="" class="action-slider"></a>
				<div id="actions-box-slider">
					<a href="" class="action-edit">Edit</a>
					<a href="" class="action-delete">Delete</a>
				</div>
				<div class="clear"></div>
			</div>
			<!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			<table border="0" cellpadding="0" cellspacing="0" id="paging-table">
			<tr>
			<td>
				<a href="" class="page-far-left"></a>
				<a href="" class="page-left"></a>
				<div id="page-info">Page <strong>1</strong> / 15</div>
				<a href="" class="page-right"></a>
				<a href="" class="page-far-right"></a>
			</td>
			<td>
			<select  class="styledselect_pages">
				<option value="">Number of rows</option>
				<option value="">1</option>
				<option value="">2</option>
				<option value="">3</option>
			</select>
			</td>
			</tr>
			</table>
			<!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>


<!-- FORMULAIRE D'AJOUT -->


	<!--  start page-heading -->
	<div id="page-heading">
		<h1><a name="new">Ajout d'un activite</a></h1>
	</div>
	<!-- end page-heading -->
	
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="<?=base_url()?>www/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="<?=base_url()?>www/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content">

<?
$attributes_info = array('name' => 'AddForm');
$fields_info = array();
echo form_open_multipart('listactivites/add', $attributes_info, $fields_info );
?>
		<!-- start id-form -->
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<!-- list of variables - auto-generated : -->
		<tr>
			<td nowrap><label title="Nom" for="actlblib">Libellé</label> : </td>
			<td><input type="text" name="actlblib" id="actlblib" class="inp-form-error"></td>
			<td>&nbsp;</td>
			<td nowrap><label title="Niveau de l'activité" for="actidniv">Niveau</label> : </td>
			<td>
				<select name="actidniv" id="actidniv" class="styledselect_form_1">
					<?php foreach ($niveaux as $niveau): ?>
					<option value="<?= $niveau->nividniv ?>"><?= $niveau->nivlbnom ?></option>
					<?php endforeach;?>
				</select>
			</td>
		</tr>
		<tr>
			<td nowrap><label title="Tranche d'age théorique des adhérents" for="actidtra">Tranche d'age</label> : </td>
			<td>
				<select name="actidtra" id="actidtra" class="styledselect_form_1">
					<?php foreach ($tranchesAges as $trancheAges): ?>
					<option value="<?= $trancheAges->traidtra ?>"><?= $trancheAges->tralbnom ?></option>
					<?php endforeach;?>
				</select>
			</td>
			<td>&nbsp;</td>
			<td nowrap><label title="Saison de l'activité" for="actidsai">Saison</label> : </td>
			<td>
				<select name="actidsai" id="actidsai" class="styledselect_form_1">
					<?php foreach ($saisons as $saison): ?>
					<option value="<?= $saison->saiidsai ?>" <?= ($saison->saiidsai == $saisonEnCours->saiidsai)?("selected"):("") ?>><?= $saison->sailbnom ?></option>
					<?php endforeach;?>
				</select>
			</td>
		</tr>
		<tr>
			<td nowrap><label title="professeur qui dirige l'activité (vide = pas de professeur)" for="actidpro">Professeur</label> : </td>
			<td>
				<select name="actidpro" id="actidpro" class="styledselect_form_1">
					<?php foreach ($professeurs as $professeur): ?>
					<option value="<?= $professeur->proidpro ?>"><?= $professeur->prolbprn ?> <?= $professeur->prolbnom ?></option>
					<?php endforeach;?>
				</select>
			</td>
			<td>&nbsp;</td>
			<td nowrap><label title="activité maintenue lors de la saison" for="actfgmai">Maintenue dans la saison</label> : </td>
			<td>
				<input type="checkbox" name="actfgmai" id="actfgmai" class="inp-form-error"> &nbsp; Oui
			</td>
		</tr>
		<tr>
			<td nowrap><label title="Créneau horaire - jour de la semaine" for="actlbjou">Jour de la semaine</label> : </td>
			<td>
			
				<select name="actlbjou" id="actlbjou" class="styledselect_form_1">
					<option value="Lundi">Lundi</option>
					<option value="Mardi">Mardi</option>
					<option value="Mercredi">Mercredi</option>
					<option value="Jeudi">Jeudi</option>
					<option value="Vendredi">Vendredi</option>
				</select>
			</td>
			<td>&nbsp;</td>
			<td nowrap><label title="créneau horaire - heure de début" for="actlbhdb">Heure de début</label> : </td>
			<td><input type="text" name="actlbhdb" id="actlbhdb" class="inp-form-error"></td>
			<td nowrap>
				<div class="bubble-left"></div>
				<div class="bubble-inner">Au format 00h00</div>
				<div class="bubble-right"></div>
			</td>
		</tr>
		<tr>
			<td nowrap><label title="Situation de l'activité" for="actidsit">Situation</label> : </td>
			<td>
				<select name="actidsit" id="actidsit" class="styledselect_form_1">
					<?php foreach ($situations as $situation): ?>
					<option value="<?= $situation->sitidsit ?>"><?= $situation->sitlbnom ?></option>
					<?php endforeach;?>
				</select>
			</td>
			<td></td>
			<td nowrap><label title="créneau horaire - heure de fin" for="actlbdfn">Heure de fin</label> : </td>
			<td><input type="text" name="actlbdfn" id="actlbdfn" class="inp-form-error"></td>
			<td nowrap>
				<div class="bubble-left"></div>
				<div class="bubble-inner">Au format 00h00</div>
				<div class="bubble-right"></div>
			</td>
		</tr>
		
		<tr>
			<td colspan="3"></td>
			<td>
				<input type="submit" value="" class="form-submit" />
			</td>
		</tr>
	</table>
	

<?
echo form_close('');
?>

		 
			</div>
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>


</body>
</html>